package com.tricode.ile.training.task.one.greatestcommondivisor;

import java.util.Scanner;

public class MainGCD {

	public static void main(String[] args) {

		GreatestCommonDivisor object = new GreatestCommonDivisor();
		int firstNumber, secondNumber;
		System.out.println("Enter two numbers to calculate GCD and LCM");
		Scanner in = new Scanner(System.in);
		firstNumber = in.nextInt();
		secondNumber = in.nextInt();
		in.close();
		System.out.println("The GCD of "+firstNumber+" and "+secondNumber+" is: "+ object.functionGCD(firstNumber, secondNumber));
	}

}
